import { createSSRApp } from "vue";
import * as Pinia from 'pinia';
import tmui from "./tmui"
import App from "./App.vue";
import tmuiConfig from "./libs/tmuiConfig";
// uni.hostUrl = 'https://mockapi.eolink.com/xzqfxPEcf4a32394ab65991499695e035434b96528f0b25'
uni.hostUrl = 'https://chanxueyanyong.banlvit.com/wxappapi'
// uni.imgHost = 'http://deadmin.test/wxappapi'
uni.imgHost = 'https://s.banlvit.com/chanxueyanyongpt/'

export function createApp() {
  const app = createSSRApp(App);
  app.use(tmui,{...tmuiConfig} as Tmui.tmuiConfig)
  return {
    app,
    Pinia
  };
}
